import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
        mode: 'history',
        // base: '/',
        routes: [
            {
                path: '/',
                name: 'home',
                component: () => import("@/views/home"),
                redirect: '/goods-list',
                children: [
                    { path: '/goods-info', name: 'goodsInfo', component: () => import("@/components/goods/info")},
                    { path: '/goods-list', name: 'goodsList', component: () => import("@/components/goods/list")}
                ]
            },
        ]
    }
)